var ISMOBILE = /mobile|android|iphone/i.test(navigator.userAgent)
var protocol = 'https:';
var ipUrl = '110.40.226.191:1443';
var TokenUrl = 'http://10.166.33.117/dhccam/token/generate?grant_type=api_credentials' //2024年10.1深夜，改为以下地址 33.106对应内网34.2测试库
	TokenUrl = 'https://mapp.pumch.cn:1443/dhccam-mobile/token/generate?grant_type=api_credentials'
var APIURL = 'http://10.166.33.117/dhccam/gateway/index' //2024年10.1深夜，改为以下地址
	APIURL = 'https://mapp.pumch.cn:1443/dhccam-mobile/gateway/index'
var APPID = "",APPKEY = "",CRYPTO_SM3_KEY = "",CRYPTO_SM4_KEY="",CRYPTO_IV="0102030405060708"; //必须为空 在plus环境中判断是安卓还是iOS
var CRYPTO_SIGN_TYPE = 'SM',CRYPTO_TYPE="SM" //加密方式 SM或MD5
var timeInt = 7200 * 1000



//适配
var SCALE = computeScale();
function computeScale(){
	var windowW = window.screen.width;
	var param = 25
	if (windowW < 320) {
		param = 16
	}else if (windowW >= 320 && windowW < 376) {
		param = 21.33
	}else if (windowW >= 376 && windowW < 413) {
		param = 25 //华为屏也是1280,所以都适配了
	}else if (windowW >= 414 && windowW < 767) {
		param = 27.6
	}else if (windowW >= 768) {
		param = 51.2
	}
	return param/25
}